package Homework7;

public class Person1 extends Person0 implements Comparable<Person1> {
    public Person1(String n, int a) {
        super(n, a);
    }

    @Override
    public int compareTo(Person1 other) {
        return this.getName().compareTo(other.getName());
    }
}
